import React from 'react';
import { useParams, useHistory } from 'react-router-dom';
import { Button } from 'antd';

function UserPage () {
  let history = useHistory();
  let userParams = useParams();
  let { username } = userParams;
  return (<div style={{ margin: '10px 0' }}>用户名为 ： {`${username}`}  <br />
    <Button onClick={() => {
      history.goBack();
    }}>返回上一页</Button></div>)
};

export default UserPage;
